package cn.yudao.basic.constant;

/**
* @Title:
* @Description: 创建一个公共的常量类
* @Author: Mr.Jia
* @Version: 1.0
* @Date:  2022/7/5 15:12
* @Parameters:
* @Return
*/
public class BaseConstants {


    /** 
    * @Title:
    * @Description: sms短信平台常量类
    * @Author: Mr.Jia
    * @Version: 1.0
    * @Date:  2022/7/5 15:13  
    * @Parameters: 
    * @Return 
    */
    public class SmsConstant{

        // 网站的账号名称
        public final static String SMS_UID = "呀呀呀呀呀";
        // 网站提供的密匙
        public final static String SMS_KEY = "CE4B543BFADD59D7EA21DB29AD3347F6";
    }

    /**
    * @Title:
    * @Description: 验证的常量
    * @Author: Mr.Jia
    * @Version: 1.0
    * @Date:  2022/7/6 11:05
    * @Parameters:
    * @Return
    */
    public class VerifyCodeConstant{

        // 注册业务键
        public final static String BUSINESS_REGISTER_KEY = "register:";
        // 登录业务键
        public final static String BUSINESS_LOGIN_KEY = "login:";
        // 绑定业务键
        public final static String BUSINESS_BINDER_KEY = "binder:";
    }

    /**
    * @Title:
    * @Description: 微信
    * @Author: Mr.Jia
    * @Version: 1.0
    * @Date:  2022/7/10 17:06
    * @Parameters:
    * @Return
    */
    public class WxConstant{

        // 获取ACCESS_TOKEN和openid的url地址
        public final static String WX_ACCESS_TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
        // APPID
        public final static String WX_APPID = "wxd853562a0548a7d0";
        // SECRET
        public final static String WX_SECRET = "4a5d5615f93f24bdba2ba8534642dbb6";
        // 请求用户个人信息的 https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID
        public final static String WX_USER_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID";
    }


    public class JwtConstant{

        // jwt私钥业务键
        public final static String JWT_AUTH_PRIKEY = "jwt/pethome_auth_rsa.pri";
        // 登录业务键
        public final static String JWT_AUTH_PUBKEY = "jwt/pethome_auth_rsa.pub";
    }

}
